package presentationTier.actions;

import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import presentationTier.Global;
import presentationTier.MainForm;
import presentationTier.dialogs.ChangeGenreDialog;

/**
 *
 * @author vojta
 */
public class ChangeGenreOkAction implements ActionListener{

    ChangeGenreDialog dialog;

    public ChangeGenreOkAction(ChangeGenreDialog aThis) {
        dialog = aThis;
    }

    public void actionPerformed(ActionEvent e) {
        dialog.dispose();
        Global.refreshTable((MainForm) dialog.getParent());
    }

}
